package com.atguigu.tingshu.model.user;

import com.atguigu.tingshu.model.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.io.Serial;
import java.util.Date;

/**
 * <p>
 * 用户信息表 -- 对应 user_info 表
 * </p>
 *
 * @author sun
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("user_info")
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
public class UserInfo extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * 手机
     */
    @TableField("phone")
    private String phone;
    /**
     * 密码
     */
    @TableField("password")
    private String password;
    /**
     * 微信openId
     */
    @TableField("wx_open_id")
    private String wxOpenId;
    /**
     * 昵称
     */
    @TableField("nickname")
    private String nickname;
    /**
     * 用户头像
     */
    @TableField("avatar_url")
    private String avatarUrl;
    /**
     * 用户是否为VIP会员
     */
    @TableField("is_vip")
    private Integer isVip;
    /**
     * 当前VIP到期时间，即失效时间
     */
    @TableField("vip_expire_time")
    private Date vipExpireTime;
    /**
     * 性别
     */
    @TableField("gender")
    private Integer gender;
    /**
     * 生日
     */
    @TableField("birthday")
    private Date birthday;
    /**
     * 简介
     */
    @TableField("intro")
    private String intro;
    /**
     * 认证类型
     */
    @TableField("certification_type")
    private Integer certificationType;
    /**
     * 认证状态
     */
    @TableField("certification_status")
    private Integer certificationStatus;
    /**
     * 状态
     */
    @TableField("status")
    private String status;

}